package icu.qx.qc.domain.pro;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import icu.qx.qc.domain.pbs.PbsProcedure;
import icu.qx.qc.domain.pbs.PbsProcedureRoute;
import icu.qx.qc.domain.pbs.PbsWorkGroup;

/**
 * 工单任务对象 pro_work_task
 *
 * @author yong
 * @date 2024-06-24
 */
@JsonIgnoreProperties(value = {"handler"})
public class ProWorkTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 工单任务code
     */
    private String wtaskCode;

    /**
     * 质检人员
     */
    @Excel(name = "质检人员")
    private Long wtaskQcPeo;

    /**
     * 工单code
     */
    @Excel(name = "工单code")
    private String wtaskWoCode;
    private ProWorkOrder proWorkOrder;

    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    private String wtaskName;

    /**
     * 任务负责人
     */
    @Excel(name = "任务负责人")
    private String wtaskManager;

    /**
     * 生产班组code
     */
    @Excel(name = "生产班组code")
    private String wtaskGroup;
    private PbsWorkGroup pbsWorkGroup;

    /**
     * 工序code
     */
    @Excel(name = "工序code")
    private String wtaskProcedureCode;
    private PbsProcedure pbsProcedure;

    /**
     * 工艺路线code
     */
    @Excel(name = "工艺路线code")
    private String wtaskRouteCode;
    private PbsProcedureRoute pbsProcedureRoute;

    /**
     * 工单任务状态 0未派工 1已下达 2进行中 3已完成 4已关闭 5已暂停
     */
    @Excel(name = "工单任务状态 0未派工 1已下达 2进行中 3已完成 4已关闭 5已暂停")
    private String wtaskStatus;

    /**
     * 关闭原因
     */
    @Excel(name = "关闭原因")
    private String wtaskPCloseReason;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String wtaskPDesc;

    public PbsWorkGroup getPbsWorkGroup() {
        return pbsWorkGroup;
    }

    public void setPbsWorkGroup(PbsWorkGroup pbsWorkGroup) {
        this.pbsWorkGroup = pbsWorkGroup;
    }

    public PbsProcedure getPbsProcedure() {
        return pbsProcedure;
    }

    public void setPbsProcedure(PbsProcedure pbsProcedure) {
        this.pbsProcedure = pbsProcedure;
    }

    public PbsProcedureRoute getPbsProcedureRoute() {
        return pbsProcedureRoute;
    }

    public void setPbsProcedureRoute(PbsProcedureRoute pbsProcedureRoute) {
        this.pbsProcedureRoute = pbsProcedureRoute;
    }

    public ProWorkOrder getProWorkOrder() {
        return proWorkOrder;
    }

    public void setProWorkOrder(ProWorkOrder proWorkOrder) {
        this.proWorkOrder = proWorkOrder;
    }

    public void setWtaskCode(String wtaskCode) {
        this.wtaskCode = wtaskCode;
    }

    public String getWtaskCode() {
        return wtaskCode;
    }

    public void setWtaskQcPeo(Long wtaskQcPeo) {
        this.wtaskQcPeo = wtaskQcPeo;
    }

    public Long getWtaskQcPeo() {
        return wtaskQcPeo;
    }

    public void setWtaskWoCode(String wtaskWoCode) {
        this.wtaskWoCode = wtaskWoCode;
    }

    public String getWtaskWoCode() {
        return wtaskWoCode;
    }

    public void setWtaskName(String wtaskName) {
        this.wtaskName = wtaskName;
    }

    public String getWtaskName() {
        return wtaskName;
    }

    public void setWtaskManager(String wtaskManager) {
        this.wtaskManager = wtaskManager;
    }

    public String getWtaskManager() {
        return wtaskManager;
    }

    public void setWtaskGroup(String wtaskGroup) {
        this.wtaskGroup = wtaskGroup;
    }

    public String getWtaskGroup() {
        return wtaskGroup;
    }

    public void setWtaskProcedureCode(String wtaskProcedureCode) {
        this.wtaskProcedureCode = wtaskProcedureCode;
    }

    public String getWtaskProcedureCode() {
        return wtaskProcedureCode;
    }

    public void setWtaskRouteCode(String wtaskRouteCode) {
        this.wtaskRouteCode = wtaskRouteCode;
    }

    public String getWtaskRouteCode() {
        return wtaskRouteCode;
    }

    public void setWtaskStatus(String wtaskStatus) {
        this.wtaskStatus = wtaskStatus;
    }

    public String getWtaskStatus() {
        return wtaskStatus;
    }

    public void setWtaskPCloseReason(String wtaskPCloseReason) {
        this.wtaskPCloseReason = wtaskPCloseReason;
    }

    public String getWtaskPCloseReason() {
        return wtaskPCloseReason;
    }

    public void setWtaskPDesc(String wtaskPDesc) {
        this.wtaskPDesc = wtaskPDesc;
    }

    public String getWtaskPDesc() {
        return wtaskPDesc;
    }

    @Override
    public String toString() {
        return "ProWorkTask{" +
                "wtaskCode='" + wtaskCode + '\'' +
                ", wtaskQcPeo=" + wtaskQcPeo +
                ", wtaskWoCode='" + wtaskWoCode + '\'' +
                ", proWorkOrder=" + proWorkOrder +
                ", wtaskName='" + wtaskName + '\'' +
                ", wtaskManager='" + wtaskManager + '\'' +
                ", wtaskGroup='" + wtaskGroup + '\'' +
                ", pbsWorkGroup=" + pbsWorkGroup +
                ", wtaskProcedureCode='" + wtaskProcedureCode + '\'' +
                ", pbsProcedure=" + pbsProcedure +
                ", wtaskRouteCode='" + wtaskRouteCode + '\'' +
                ", pbsProcedureRoute=" + pbsProcedureRoute +
                ", wtaskStatus='" + wtaskStatus + '\'' +
                ", wtaskPCloseReason='" + wtaskPCloseReason + '\'' +
                ", wtaskPDesc='" + wtaskPDesc + '\'' +
                "} " + super.toString();
    }
}
